package com.ruoyi.web.schedule;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.ruoyi.shop.trade.service.IShopOrderJobService;
/**
 * 商城订单定时任务
 * 
 * |----------------------------------------------------------------------|
 * |fast-shop [ 快商城，简单好用的小商城 ]
 * |----------------------------------------------------------------------|
 * |copyright www.fast-shop.cn All rights reserved.
 * |----------------------------------------------------------------------|
 * | @author xuxiang
 * |----------------------------------------------------------------------|
 * | @date 2023-12-20
 * |----------------------------------------------------------------------|
 */

@Component("orderJob")
public class ShopOrderJob {
	@Autowired
	private IShopOrderJobService shopOrderJobService;

	/**
	 * 支付超时自动取消订单
	 */
	public void cancelOrder() {
		shopOrderJobService.payOrderCancel();
	}
}
